package edu.yang.dbutils.entity;

import edu.yang.dbutils.comment.Column;

import java.math.BigDecimal;
import java.sql.Date;

/**
 * User 实体类
 * @author yang
 * @date 2024-05-12
 */
public class User {
    /**
     * 用户编号
     */
    @Column("u_id")
    private Integer id;
    /**
     * 用户名
     */
    @Column("u_name")
    private String name;
    /**
     * 密码
     */
    @Column("u_password")
    private String passWord;
    /**
     * 年龄
     */
    @Column("u_age")
    private Integer age;
    /**
     * 出生日期
     */
    @Column("u_birth")
    private Date birth;
    /**
     * 资金
     */
    private BigDecimal deposit;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public BigDecimal getDeposit() {
        return deposit;
    }

    public void setDeposit(BigDecimal deposit) {
        this.deposit = deposit;
    }

    public User(Integer id, String name, String passWord, Integer age, Date birth, BigDecimal deposit) {
        this.id = id;
        this.name = name;
        this.passWord = passWord;
        this.age = age;
        this.birth = birth;
        this.deposit = deposit;
    }

    public User() {
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", passWord='" + passWord + '\'' +
                ", age=" + age +
                ", birth=" + birth +
                ", deposit=" + deposit +
                '}';
    }
}
